import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/admin/orders',
    method: 'get',
    params: query
  })
}

export function fetchCount(query) {
  return request({
    url: '/admin/orders/count',
    method: 'get',
    params: query
  })
}

export function show(id, query) {
  return request({
    url: '/admin/orders/' + id,
    method: 'get',
    params: query
  })
}

export function getTX(query) {
  return request({
    url: '/admin/getTX/',
    method: 'post',
    params: query
  })
}

